import time
import requests
import threading

# url_list = ['http://httpbin.org/headers'] * 5
url_list = ['http://www.baidu.com'] * 5
start_time = time.time()


def request_url(url):
    response = requests.get(url)
    print(response)


t_list = []
for url in url_list:
    t = threading.Thread(target=request_url, args=(url,))
    t.start()
    t_list.append(t)

for t in t_list:
    t.join()

print(time.time() - start_time)
